package org.jeecg.modules.product.riskUnit.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.product.riskUnit.entity.TbBaseRiskDevice;
import org.jeecg.modules.product.riskUnit.entity.TbBaseRiskUnit;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 重大危险源装置
 * @Author: jeecg-boot
 * @Date:   2024-04-16
 * @Version: V1.0
 */
public interface ITbBaseRiskDeviceService extends IService<TbBaseRiskDevice> {

	/**
	 * 添加一对多
	 *
	 * @param tbBaseRiskDevice
	 * @param tbBaseRiskUnitList
	 */
	public void saveMain(TbBaseRiskDevice tbBaseRiskDevice,List<TbBaseRiskUnit> tbBaseRiskUnitList) ;
	
	/**
	 * 修改一对多
	 *
   * @param tbBaseRiskDevice
   * @param tbBaseRiskUnitList
	 */
	public void updateMain(TbBaseRiskDevice tbBaseRiskDevice,List<TbBaseRiskUnit> tbBaseRiskUnitList);
	
	/**
	 * 删除一对多
	 *
	 * @param id
	 */
	public void delMain (String id);
	
	/**
	 * 批量删除一对多
	 *
	 * @param idList
	 */
	public void delBatchMain (Collection<? extends Serializable> idList);
	
}
